using System.Diagnostics.CodeAnalysis;
using Microsoft.SemanticKernel.SkillDefinition;

namespace KernelSyntaxExample.Skills;

public class TextSkill {
    [SKFunction("Remove spaces to the left of a string")]
    [SKFunctionInput(Description = "Text to edit")]
    public string LStrip(string input) {
        return input.TrimStart();
    }

    [SKFunction("Remove spaces to the right of a string")]
    [SKFunctionInput(Description = "Text to edit")]
    public string RStrip(string input) {
        return input.TrimEnd();
    }

    [SKFunction("Change all string chars to uppercase")]
    [SKFunctionInput(Description = "Text to uppercase")]
    public string Uppercase(string input) {
        return input.ToUpperInvariant();
    }
}